
beginoutdoorscript;

variables;
int i,b,c,d,j,k,r1,choice;

body;

// THIS OUTDOOR SCRIPT IS MEANT TO EXPLAIN ALL OF THE OUTDOOR
// ODDITIES, LIKE STANDING STONES, ETC.

beginstate 0;
break;

beginstate 2;
break;

beginstate 15;
if (get_flag(9,19) == 1) end();
message_dialog("It looks as if things might be stranger in this valley than you'd expected, even with Vahnatai.","A large section of the terrain is dotted in cave-growing... 'things'. Trees and crystals loom over a cave floor and the surrounding grassy area.");
message_dialog("It looks as if things are worse, a LOT worse, than you'd feared.","The valley is coming apart with the magical powers being used upon it!");
set_flag(9,19,1);
break;

beginstate 16;
if (get_flag(9,9) == 1) end();
message_dialog("The statue of a huge deer stops you in your tracks. WHAT is going on here?","You look at the deer for a bit longer. You hate to admit it, but you're scared. SOMETHING is going on. But what?");
set_flag(9,9,1);
break;

beginstate 18;
begin_shop_mode("Orla's Potions","Orla knows quite a few powerful recipes, and is more than happy to share the knowledge with you, for a very cheap price too.",9,1,-1);
break;

beginstate 11;
block_entry(1);
	reset_dialog();
	add_dialog_str(0,"Amazingly, you have found a hut out in this wilderness. An old lady beckons you closer. Do you go?",0);
	add_dialog_choice(0,"Run");
	add_dialog_choice(1,"Approach");
	choice = run_dialog(1);
	if (choice == 1)
		end();
	if (choice == 2)
		set_state_continue(17);
break;

beginstate 17;
block_entry(1);
	reset_dialog();
	add_dialog_str(0,"You talk with the old lady, Orla, a witch, and after some time she broaches he subject of potions, and tells you that she could teach you some decent potions.",0);
	add_dialog_choice(0,"Decline and Leave");
	add_dialog_choice(1,"Accept her offer");
	choice = run_dialog(1);
	if (choice == 1)
		end();
	if (choice == 2)
		set_state_continue(18);
break;

beginstate 20;
if (get_flag(28,28) < 1){  
message_dialog("You come across a nice gap in the trees, obviously an artificial tunnel.","What lies ahead?");
set_flag(28,28,1);}
break;

break;